<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
		<script language="javascript" src="<%=path%>/application/js/treeSelect.js"></script>
					<script language="javascript" src="<%=path%>/js/SyncCommon.js"></script>
		<script language="javascript">
			<!--
			function open_windowss(path){
					var window_width=500;
					var window_height=500;
					var window_left=(screen.availWidth/3)-(window_width/2);
					var window_top=(screen.availHeight/3)-(window_height/4);
					var window_dimensions = "height="+window_height+
					",width="+window_width+
					",left="+window_left+
					",top="+window_top+",status=no,tollbar=no,scrollbars=no";
					window.open(path,'org_select_role',window_dimensions);
				}
			-->
		</script>
											<style>
html { overflow-x: hidden; overflow-y: auto; }
</style>
	</head>
	<body>
			<html:form styleId="projectrfpsForm" action="/application/projectrfps/commanderFlow.do?method=commanderFlow" onsubmit="return save();">
			<html:hidden property="id" value="${projectrfpss.id}"/>
					<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
					    <tr>
					      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12"/>&nbsp;项目管理 &gt; 立项管理 &gt; 项目建议书 &gt; 审批 </td>
					  </tr>
					</table>	
					<!-- 表单内容 -->
		          	<%@ include file="/application/projectrfps/projectrfps_inc.jsp"%>
		          	<!-- 查看意见 -->
		          	<%@ include file="/application/examine/examineList.jsp"%>
					<!-- 审批意见 -->
					<%@ include file="/application/examine/examineAdd.jsp"%>								
				  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
				    <td align="center">
						  <input class="buttonbg" id="but_save2" type="submit" value="打回修改" onclick="return checkaction('6')"  name="but_save2" />
						  &nbsp;&nbsp;&nbsp;
						  <input class="buttonbg" id="but_save3" type="submit" value="同意" onclick="return checkaction('agree')"  name="but_save3" />
						  &nbsp;&nbsp;&nbsp;
						  <input class="buttonbg" id="but_return" type="button" value="<bean:message key='com.syc.common.projectrfps.return' bundle="projectrfps"/>" name="but_return"" onClick="javascript:history.go(-1);"/>
					</td>
				  </tr>
				</table>
			<!-- 同意与否 -->
			<html:hidden styleId="result" property="result" value="" />
			<html:hidden styleId="procid" property="procid" value="${projectrfpss.procid}" />
			<html:hidden styleId="workItemId" property="workItemId" value="${projectrfpss.workItemId}" />
			<html:hidden styleId="pageparam" property="pageparam" value="${projectrfpss.pageparam}" />			
		</html:form>
	</body>
</html>

<script>
	//判断流程走向条件
	function checkaction(mark){
		document.all("result").value = mark;
		//alert(document.all("result").value);
	}
function save(){
	if(validateForm(document.forms[0],'Y'))
	{
		return true;
		
	}else{
	    return false;
	}
}


</script>
